package com.test.shiro.service.impl;

import com.test.shiro.domain.UserRepository;
import com.test.shiro.entity.User;
import com.test.shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserRepository userRepository;
    @Override
    public List<User> findByUname(String username) {
                List<User> users=userRepository.findByUname(username);
                return users;
    }
}
